
package usyd.comp5348;

import javax.ejb.Remote;

/**
 * This is the business interface for Order enterprise bean.
 */
@Remote
public interface OrderRemote {
    
    void modifyOrder(OrderInfo order) throws OrderException;
    
    void deleteOrder(int id) throws OrderException;
    
    void submitOrder(int id) throws OrderException;
    
    OrderInfo getOrderById(int id) throws OrderException;
    
    void updateOrderStatus(int id, int newStatus) throws OrderException;
    
    float calculateOrderCost(OrderInfo order) throws OrderException;
    
    void validateOrder(OrderInfo order) throws OrderException;
    
    int createOrder(OrderInfo order) throws OrderException;
}
